package com.demo.demo.controller;

import com.demo.demo.model.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("Test")
public class TestController {

    @GetMapping
    public User index() {
        User user = new User();
        user.setUsername("lelouchms");
        user.setPassword("123456");
        user.setAge(11);
        return user;
    }

}
